// dlg.txt

begintalkscript;

variables;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(67,1) == 0;
	question = "special";
	text1 = "You have climbed into the Lethia Pass, the broad stretch of rocky land that connects the Dera Reaches to Lethia Province.";
	text2 = "Lethia Province is the second oldest region in the Shaper Empire and one of the most wealthy and civilized areas. It is safe to bet that they have no desire for the rogue infections that plague the Dera Reaches to spread there.";
	text3 = "No doubt, there are serious defenses in place ahead to protect their affluence.";
	action = SET_SDF 67 1 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(67,2) == 0;
	question = "special";
	text1 = "Looking down the road ahead, you can see the first line of defense for the Lethia Pass. Clusters of turrets. Huge turrets. The moment you get close, they swivel in your direction, trying to sense the moment you step within range.";
	text2 = "They are deadly creatures, skillfully Shaped and trained to impale anyone who tries to cross this quarantine zone.";
	action = SET_SDF 67 2 1;

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(67,3) == 0;
	question = "special";
	text1 = "Before the war, this was a meeting place for merchants. They could camp here and trade goods. Delicate cargo could be stored in sheltered caverns to the north.";
	text2 = "The clearing has since been colonized by a large group of rogues. They came in, tore apart all of the supplies left by fleeing merchants. Now they hide back here, safely out of range of the turrets.";
	action = SET_SDF 67 3 1;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = get_sdf(67,4) == 0;
	question = "special";
	text1 = "You have managed to slip past the clusters of turrets. From here, you get a good look at the gate defending the Lethia Pass.";
	text2 = "The defenses here are even more daunting. More turrets, even larger than the ones you saw before. Chains of mines, some of the biggest you have ever seen. And a tall wall, smooth stone topped with spikes.";
	text3 = "Lethia Province has been serious about sealing its border. Without help on the other side of the wall, there is no way you are getting through here. At least you managed to see the gate.";
	action = SET_SDF 67 4 1;

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "There is a battle alpha sitting on the ground here, eating some fruit and vegetables that have been left out for it. It looks up at you mutely. If it wants to talk, it doesn't know how to.";


begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  Shaper Conason";
	text3 = "  Keeper of the Defenses";
	
begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  WARNING!";
	text3 = "  LETHIA PROVINCE BORDER IS SEALED!";
	text4 = "  Turrets are created to kill ALL targets!";

begintalknode 8;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";


begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Shaper Conason";
	text1 = "There is a Shaper in this stone dome, putting the finishing touches on a large turret. Soon, he will have his battle alphas carry it out and place it in the field.";
	text2 = "He is a surprisingly young man to be doing such touchy and skilled work. He seems to have only just completed his training. He turns and nods at you in greeting. He isn't the slightest bit afraid of you.";
	text3 = "_Welcome to my little workshop. I am Shaper Conason, of the Lethia Pass. I know who you are. I'm glad you talked to me. Now I can warn you not to go west. It is so difficult recovering the bodies of those that do._";
	text5 = "Shaper Conason continues to Shape a turret. He focuses his mind and extends his hands, and essence flows through the air into the creature. With every passing minute, it seems less formless.";
	text6 = "After a time, he turns to take a rest. _Have to go slowly. One mistake, and it might become hostile. What else do you wish to speak of?_";
	action = INTRO;

begintalknode 11;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Tell me about this pass.";
	text1 = "He seems entirely guileless, happy to chat with a stranger about the pass and its defenses. _This is the best route between the Dera Reaches and Lethia Province. Certainly the only one a force of any size could use._";
	text2 = "_It was sealed by Lethia Province. I was allowed to come out here and maintain its defenses at this end._";

begintalknode 12;
	state = 10;
	nextstate = 12;
	condition = 1;
	question = "What are you doing out here?";
	text1 = "He pats the turret he is Shaping on the side. It lets out a satisfied little squeak. _Someone needed to create and maintain the turrets here. I volunteered._";
	text2 = "_I decided that I needed the solitude. While I was gaining respect and influence in the Shaper circles, I found that what was happening to my people was too distressing for me to watch._";
	text3 = "You find Shaper Conason to be unusually friendly and outgoing for a Shaper. Must be why he was sent out to this remote wasteland.";
	
begintalknode 13;
	state = 10;
	nextstate = 15;
	condition = 1;
	question = "Can you help me to go west?";
	text1 = "He shakes his head. _I will not defy the Council. Not for other Shapers, and not for you. If you try to go west, I have every hope that my turrets will stop you._";

begintalknode 14;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "This is the only way to Lethia Province?";
	text1 = "_No, the only easily traversed way. Infiltrators, flying creations, or the very strong could cross the mountains. But a large force? This is the only route._";

begintalknode 15;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Why was it sealed?";
	text1 = "_The rebels have infested the middle provinces with a variety of nasty, reproducing creations. Podlings. Bugs. And then there are the Unbound._";
	text2 = "_The province to the west is prosperous and peaceful, and they want to keep it that way. When they have supplies or troops to send, they send them to General Alwan, through the pass to the north. The southern pass is closed._";

begintalknode 16;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Do you think that it should be sealed?";
	text1 = "_I do not want to question the wisdom of Councilor Nawaz, leader of Lethia Province. If I cared to be involved in politics, I would not have exiled myself out here._";

begintalknode 17;
	state = 10;
	nextstate = 16;
	condition = 1;
	question = "How did you know who I am?";
	text1 = "_I am not without friends and influence outside this pass. Sometimes, they come to me. They give me information. I give them advice. I do what I can to remain connected to the system, so that I might rejoin it._";
	text2 = "_During one of those visits, I heard about that mysterious outsider, skilled in Shaping, who seemed to be having such an unexpected effect on things. I suspected that you might come here. And here you are._";
	
begintalknode 18;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "It is difficult to make these turrets?";
	text1 = "_I don't want to boast, but very much so. Having them end up calm and controllable once created? Even harder. But I seem to have a knack._";
	text2 = "";

begintalknode 19;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "You have influence among the Shapers?";
	text1 = "_Again, I do not want to boast, but I seemed to be poised to rise quickly in the ranks. My colleagues did not understand why I wanted to end up out here._";
	text2 = "_Maybe someday they will understand._";
	
begintalknode 20;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "What bothered you about the Shapers?";
	text1 = "_The way they have come to deal with adversity. Once, my people responded to challenges with action. They saw the problem, they decided to fix it, and they acted._";
	text2 = "_The outsiders might not approve of their decisions, but they were capable of making a decisive, calm, rational response._";
	
begintalknode 21;
	state = 13;
	nextstate = 10;
	condition = 1;
	question = "And now?";
	text1 = "_Now ... I don't know. They have been powerful for too long, arrogant for too long, facing too much of a challenge. They are splintering._";
	text2 = "_Some want to surrender. Some want to engage in thoughtless bloodshed. And some ..._ He looks to the east and shakes his head. _It makes me long for a day when the Shapers believed in ..._";
	text3 = "He sighs. _I am rambling. I would prefer not to discuss this with outsiders. This is a matter for Shapers. I hope you do not take offense._";

begintalknode 22;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "Make the turrets let me by, or I will destroy you.";
	text1 = "_Oh, dear. Now another part of my orders is active. The part regarding how I am to treat potential rebels and spies. I regret this, but you have forced this upon me ..._";
	action = END_TALK;
	code =
		make_zone_hostile();
		set_flag(67,5,1);
	break;
	
begintalknode 23;
	state = 15;
	nextstate = -1;
	condition = get_stat(20) > 4;
	question = "Perhaps you can give me advice on how to pass them?";
	text1 = "_I certainly wouldn't do that. Of course, I have never seen a field of turrets that did not have a way to slip through it, but I have taken great care to try to keep this from happening here._";

begintalknode 24;
	state = 15;
	nextstate = 10;
	condition = 1;
	question = "I want to know something else.";
	text1 = "_Go on._";

begintalknode 25;
	state = 16;
	nextstate = 17;
	condition = gf(67,7) == 0;
	question = "So you still have influence?";
	text1 = "_A small amount. I can, for example, make my allies more or less likely to support a certain course. Or I might encourage them to welcome and trust an outsider who could be useful to them._";

begintalknode 26;
	state = 16;
	nextstate = -1;
	condition = gf(67,7) > 0;
	question = "So you still have influence?";
	text1 = "_I do, but I'm afraid I have done all I can on your behalf._";

begintalknode 27;
	state = 17;
	nextstate = 10;
	condition = 1;
	question = "Interesting. I want to know something else.";
	text1 = "_Of course. It is nice to have a conversation after these weeks of silence._";

begintalknode 28;
	state = 17;
	nextstate = 18;
	condition = 1;
	question = "Can you speak on my behalf?";
	text1 = "_You seem skilled and competent. I could use my influence to encourage my allies to spread kind words about you. This might encourage Shapers to give you a chance when they might not otherwise._";
	text2 = "_Of course, rebel spies will hear these words too. The rebels might be less likely to trust you._";
	text3 = "_Would you like for me to do this?_";

begintalknode 29;
	state = 18;
	nextstate = 10;
	condition = 1;
	question = "No.";
	text1 = "_Of course. It is nice to have a conversation after these weeks of silence._";

begintalknode 30;
	state = 18;
	nextstate = 10;
	condition = 1;
	question = "Yes.";
	text1 = "_Then consider it done. I will start sending out my messages very soon. I hope that you will not betray my trust. Influence with the Shapers is valuable and rare._";
	code =
		sf(67,7,1);
		inc_flag(100,0,10);
	break;

begintalknode 31;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "Perhaps you could use some of your time out here to teach me?";
	text1 = "_It is not possible. I'm afraid that I have not been a Shaper long enough to teach the arts. Only practice them._ You suspect that he doesn't want to teach an outsider, but he is too polite to say so.";
	
//


//

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 51;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

	
begintalknode 52;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 53;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 54;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 55;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 56;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 57;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 58;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 59;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 60;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 61;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 62;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 63;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 64;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

//

begintalknode 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 71;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

//

begintalknode 90;
	state = -1;
	nextstate = 90;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 91;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
		